package vcp.client.GUI.events;

import java.util.EventObject;

import vcp.client.forms.FormAbstract;

/**
 * 
 * @author VCP team
 *         <p>
 *         abstract generic class for different forms
 *         </p>
 * @param <T>
 */
public class FormSubmitionEvent <T extends FormAbstract> extends EventObject
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 7684672189296537782L;

	/** event type **/
	private final T form;

	public T getForm ()
	{
		return this.form;
	}

	/**
	 * form data fill
	 * 
	 * @param source
	 * @param filledForm
	 */
	public FormSubmitionEvent ( Object source, T filledForm )
	{
		super(source);
		this.form = filledForm;
	}
}
